package com.retoc.oawx.service;

import cn.hutool.json.JSONObject;
import com.retoc.oawx.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
* @author retoc
* @description 针对表【tb_user(用户表)】的数据库操作Service
* @createDate 2022-05-01 20:00:13
*/
public interface UserService extends IService<User> {
    public int registerUser(String registerCode, String code, String nickname, String photo);

    public Set<String> searchUserPermissions(int userId);

    public Integer login(String code);

    public User searchById(int userId);

    public String searchUserHiredate(int userId);

    public HashMap searchUserDept(int userId);

    public ArrayList<HashMap> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap> searchMembers(List param);

    public List<HashMap> selectUserPhotoAndName(List param);

    public JSONObject searchUserContactList();

    public HashMap searchUserInof(int userId);

    public void insertUser(HashMap param);

    public int updateUserInfo(HashMap param);

    public void deleteUserById(int id);
}
